import http from '../../utils/request'

// 获取我的室友
export const getRoomyList = data => {
  return http.request({
    url: `/house/tRoommate/list`,
    method: 'post',
    data: JSON.stringify(data)
  })
}
// 删除室友
export const delRoomy = params => {
  return http.request({
    url: `/house/tRoommate/remove`,
    method: 'get',
    params
  })
}
// 添加室友
export const addRoomy = data => {
  return http.request({
    url: `/house/tRoommate/save`,
    method: 'post',
    data: JSON.stringify(data)
  })
}

export const isaggre = params => {
  return http.request({
    url: `/house/tRoommate/isaggre`,
    method: 'get',
    params
  })
}
export const showinfo = params => {
  return http.request({
    url: `/house/tRoommate/showinfo`,
    method: 'get',
    params
  })
}
